package com.yufa.springcloud.feign;

import feign.Logger;
import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignClient01Config {
//    @Autowired
//    private ObjectFactory<HttpMessageConverters> messageConverters;

    @Bean
    public Encoder feignEncoder() {
        return new SpringFormEncoder();
    }

    @Bean
    public Logger.Level level() {
        return Logger.Level.FULL;
    }
}
